:art: Add complement_code

huangqimin001 4 年之前
父节点
当前提交
66b3b9f961
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api/complement_views.py

+ 1 - 1
api/complement_views.py

@@ -21,7 +21,7 @@ def complement_code(request):
21 21
     shot_path = request.POST.get('shot_path', '')
22 22
     invoice_path = request.POST.get('invoice_path', '')
23 23
 
24
-    log = ComplementCodeLogInfo.objects.update_or_create(user_id=user_id, log_id=log_id, defaults={
24
+    log, _ = ComplementCodeLogInfo.objects.update_or_create(user_id=user_id, log_id=log_id, defaults={
25 25
         'name': name,
26 26
         'phone': phone,
27 27
         'model_id': model_id,